package com.mes.entity;

import java.io.Serializable;

/**
 * 工艺建模
 * @TableName mes_process_model
 */
public class MesProcessModel implements Serializable {
    /**
     * 编号
     */
    private Long id;

    /**
     * 物料档案编号
     */
    private Long materialId;

    /**
     * 工艺名称
     */
    private String processName;

    /**
     * 工艺描述
     */
    private String description;

    /**
     * 单位耗电量
     */
    private Double powerConsume;

    /**
     * 备注
     */
    private String remark;

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 物料档案编号
     */
    public Long getMaterialId() {
        return materialId;
    }

    /**
     * 物料档案编号
     */
    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    /**
     * 工艺名称
     */
    public String getProcessName() {
        return processName;
    }

    /**
     * 工艺名称
     */
    public void setProcessName(String processName) {
        this.processName = processName;
    }

    /**
     * 工艺描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 工艺描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 单位耗电量
     */
    public Double getPowerConsume() {
        return powerConsume;
    }

    /**
     * 单位耗电量
     */
    public void setPowerConsume(Double powerConsume) {
        this.powerConsume = powerConsume;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MesProcessModel other = (MesProcessModel) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMaterialId() == null ? other.getMaterialId() == null : this.getMaterialId().equals(other.getMaterialId()))
            && (this.getProcessName() == null ? other.getProcessName() == null : this.getProcessName().equals(other.getProcessName()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getPowerConsume() == null ? other.getPowerConsume() == null : this.getPowerConsume().equals(other.getPowerConsume()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMaterialId() == null) ? 0 : getMaterialId().hashCode());
        result = prime * result + ((getProcessName() == null) ? 0 : getProcessName().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getPowerConsume() == null) ? 0 : getPowerConsume().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", materialId=").append(materialId);
        sb.append(", processName=").append(processName);
        sb.append(", description=").append(description);
        sb.append(", powerConsume=").append(powerConsume);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}